package com.Test;

import com.DAO.*;
import com.Module.*;

public class TestDemo {
    public static void main(String[] args) {
        Userinfo userinfo=new Userinfo();
        Administorinfo administorinfo=new Administorinfo();
        Roominfo roominfo=new Roominfo();
        roominfo.select();
        Menberinfo menberinfo=new Menberinfo();
        Roomtypeinfo roomtypeinfo=new Roomtypeinfo();
        roominfo.select();
        menberinfo.select();
        administorinfo.select();
        userinfo.select();
//        House hous=houseinfo.list.get(0);
//        System.out.println("编号\t姓名\t密码\t电话");
        int index=0;
        while (index<userinfo.list.size() ){
            try {
//                Menber menber=menberinfo.list.get(index);
                User user = userinfo.list.get(index);
//                Room room=roominfo.list.get(index);
//                Administor administor=administorinfo.lis.get(index);
//                RoomType roomType=roomtypeinfo.list.get(index);
//                System.out.print(user.getId()+"\t");
//                System.out.print(user.getName()+"\t");
//                System.out.print(user.getPassword()+"\t");
////                System.out.print(hous.getRstste()==1?"不可住":"可住"+"\t");
//                System.out.print(user.getTel()+"\t");
//                System.out.println();
                System.out.println(user.toString());
//                System.out.println(administor.toString());
//                System.out.println(menber.toString());
                index++;
            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
}
